<table cellpadding="0" cellspacing="0" border="0" width="100%" class="zebra com_list">
	<?php 
		$adc->loadAdBookmarks();
		if($adc->getAdBookmarks())
		{
			$out  = '';
			$header  = '<tr>';
			//'.ucfirst($txt->getWord('type')).' / 
			$header .= '<th class="first left">'.ucfirst($txt->getWord('category')).' / '.ucfirst($txt->getWord('brand')).'</th>';
			$header .= '<th class="left">'.ucfirst($txt->getWord('title')).'</th>';
			$header .= '<th class="left">'.ucfirst($txt->getWord('date').' '.$txt->getWord('created')).'</th>';
			$header .= '<th class="left">&nbsp;</th>';
			$header .= '<th class="last left">'.ucfirst($txt->getWord('edit')).'&nbsp;&nbsp;</th>';
			$header .= '</tr>'
			?>
				<thead class="fields">
					<tr>
						<th colspan="5" class="first left bold"><h3 class="section-title"><?php echo ucfirst($txt->getWord('my_favorites')); ?></h3></th>
					</tr>
					<?php echo $header; ?>
				</thead>
				<tbody>
				<?php
				foreach($adc->getAdBookmarks() as $item)
				{
					?>
                    <tr class="items" style="">
						<?php 
                        echo '<td class="first left" style="overflow:hidden;">';
                            if($item->getAdTypeTitle() != '')
                            { echo $item->getAdTypeTitle(); }
                            if($item->getAdCatTitle() != '')
                            { echo '&nbsp;/&nbsp;'.$item->getAdCatTitle(); }
                            if($item->getAdBrandTitle() != '')
                            { echo '&nbsp;/&nbsp;'.$item->getAdBrandTitle().'&nbsp;/&nbsp;'; }
                        echo '</td>';
                        ?>
                        <td class="left"><a target="_blank" href="<?php echo $item->getLink(); ?>"><?php echo $item->getTitle(); ?></a></td>
                        <td class="left"><?php echo $item->formatDateTime($item->getDateCreated(), 'd.m.Y'); ?>&nbsp;&nbsp;</td>
                        <td class="left">&nbsp;</td>
                        <td class="left last">&nbsp;&nbsp;
                        <?php 
                        echo '<a href="/c/'.$com->getComId().'?list=bookmark&delete='.$item->getId().'">';
                        echo ucfirst($txt->getWord('delete'));
                        echo '</a>'; 
                        ?>
                        </td>
                    </tr>
                    <?php
				}
				?>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="6"><hr /></td>
					</tr>
				</tfoot>
			<?php
		}
		else
		{
			$out  = '<tr class="items">';
			$out .= 	'<td class="first">'.ucfirst($txt->getWord('no_items')).'</td>';
			$out .= 	'<td></td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td>&nbsp;</td>';
			$out .= 	'<td class="last center">&nbsp;</td>';
			$out .= '</tr>';
		}
		echo $out;
		?>
</table>